<?php
define('DB_USER', 'ndsojuser');
define('DB_PASWORD', '123456');
define('DB_HOST', 'localhost');
define('DB_NAME', 'NDSOJ');
//$NDSOJ_dbc = @mysqli_connect(DB_HOST, DB_USER, DB_PASWORD, DB_NAME) or die('Could not connect to MySQL: ' . mysqli_connect_error());
$NDSOJ_dbc = @mysqli_connect(DB_HOST, DB_USER, DB_PASWORD, DB_NAME) or die('Could not connect to MySQL.');
@mysqli_query($NDSOJ_dbc, 'SET NAMES UTF8;');

function escape_data($data) {
	if(ini_get('magic_quotes_gpc')) {
		$data = stripslashes($data);
	}
	global $NDSOJ_dbc;
	$data = mysqli_real_escape_string($NDSOJ_dbc, trim($data));
	return $data;
}
?>
